package routers

import (
	"2301a_tv/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//广告添加
	beego.Router("/tv/add", &controllers.TvController{}, "post:Add")
	//广告展示
	beego.Router("/tv/list", &controllers.TvController{}, "get:List")
	//广告删除
	beego.Router("/tv/del", &controllers.TvController{}, "get:Del")
	//广告修改
	beego.Router("/tv/update", &controllers.TvController{}, "post:Update")
}
